text/template.state.errorf (method)

45 uses

	text/template (current package)
		exec.go#L72: 	s.errorf("undefined variable: %s", name)
		exec.go#L87: 	s.errorf("undefined variable: %s", name)
		exec.go#L129: func (s *state) errorf(format string, args ...any) {
		exec.go#L216: 		state.errorf("%q is an incomplete or empty template", t.Name())
		exec.go#L287: 		s.errorf("unknown node: %s", node)
		exec.go#L298: 		s.errorf("if/with can't use %v", val)
		exec.go#L398: 			s.errorf("range over send-only channel %v", val)
		exec.go#L416: 		s.errorf("range can't iterate over %v", val)
		exec.go#L427: 		s.errorf("template %q not defined", t.Name)
		exec.go#L430: 		s.errorf("exceeded maximum template depth (%v)", maxExecDepth)
		exec.go#L475: 		s.errorf("can't give argument to non-function %s", args[0])
		exec.go#L504: 		s.errorf("nil is not a command")
		exec.go#L510: 	s.errorf("can't evaluate command %q", firstWord)
		exec.go#L535: 			s.errorf("%s overflows int", constant.Text)
		exec.go#L540: 		s.errorf("%s overflows int", constant.Text)
		exec.go#L561: 		s.errorf("internal error: no fields in evalChainNode")
		exec.go#L564: 		s.errorf("indirection through explicit nil in %s", chain)
		exec.go#L599: 		s.errorf("%q is not a defined function", name)
		exec.go#L610: 			s.errorf("nil data; no entry for key %q", fieldName)
		exec.go#L619: 		s.errorf("nil pointer evaluating %s.%s", typ, fieldName)
		exec.go#L640: 				s.errorf("%s is an unexported field of struct type %s", fieldName, typ)
		exec.go#L643: 				s.errorf("%v", err)
		exec.go#L647: 				s.errorf("%s has arguments but cannot be invoked as function", fieldName)
		exec.go#L656: 				s.errorf("%s is not a method but has arguments", fieldName)
		exec.go#L666: 					s.errorf("map has no entry for key %q", fieldName)
		exec.go#L681: 			s.errorf("nil pointer evaluating %s.%s", typ, fieldName)
		exec.go#L684: 	s.errorf("can't evaluate field %s in type %s", fieldName, typ)
		exec.go#L710: 			s.errorf("wrong number of args for %s: want at least %d got %d", name, typ.NumIn()-1, len(args))
		exec.go#L713: 		s.errorf("wrong number of args for %s: want %d got %d", name, typ.NumIn(), numIn)
		exec.go#L717: 		s.errorf("can't call method/function %q with %d results", name, typ.NumOut())
		exec.go#L786: 		s.errorf("error calling %s: %w", name, err)
		exec.go#L813: 		s.errorf("invalid value; expected %s", typ)
		exec.go#L834: 				s.errorf("dereference of nil pointer of type %s", typ)
		exec.go#L839: 			s.errorf("wrong type for value; expected %s; got %s", typ, value.Type())
		exec.go#L854: 		s.errorf("cannot assign nil to %s", typ)
		exec.go#L888: 	s.errorf("can't handle %s for arg of type %s", n, typ)
		exec.go#L899: 	s.errorf("expected bool; found %s", n)
		exec.go#L910: 	s.errorf("expected string; found %s", n)
		exec.go#L921: 	s.errorf("expected integer; found %s", n)
		exec.go#L932: 	s.errorf("expected unsigned integer; found %s", n)
		exec.go#L943: 	s.errorf("expected float; found %s", n)
		exec.go#L953: 	s.errorf("expected complex; found %s", n)
		exec.go#L970: 		s.errorf("evalEmptyInterface: nil (can't happen)")
		exec.go#L980: 	s.errorf("can't handle assignment of %s to empty interface argument", n)
		exec.go#L1016: 		s.errorf("can't print %s of type %s", n, v.Type())